<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>Bootstrap 101 Template</title>

    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
   <div class="container">
    <div class="row">
    <!--这里添加代码-->
     <h1 class="text-center">用户注册</h1>
     <form class="form-horizontal" action="douserreg.php" enctype="multipart/form-data" method="post"><!--enctype捕捉文件上传-->

    <div class="form-group">
    <label for="uname" class="col-md-2 col-xs-3 control-label">用户名</label>
    <div class="col-md-10  col-xs-9">
    <input type="text" class="form-control" name="uname " id="uname" placeholder="用户名" required>
    </div>
    </div>

   <div class="form-group">
   <label class="col-md-2 col-xs-3 control-label" for="password">密码</label>
    <div class="col-md-10 col-xs-9">
       <input type="password" name="password" class="form-control" id="password"
       placeholder="密码">
    </div> 
   </div>

<div class="form-group">
   <label class="col-md-2  col-xs-3 control-label"  for="gender">性别</label>
    <div class="col-md-10 col-xs-9">
    <label class="radio-inline">
       <input type="radio" name="gender" id="gender" value="0" checked>男
    </label>
   <label class="radio-inline">
       <input type="radio" name="gender" value="1" >女
   </label>
    </div> 
   </div>

   <div class="form-group">
    <label class="col-md-2 col-xs-3 control-label"  for="birthdate">出生日期</label>
    <div class="col-md-10 col-xs-9">
      <input type="date" class="form-control" name="birthdate" id="birthdate"
      placeholder="出生日期">
    </div>
   </div>

    <div class="form-group">
    <label class="col-md-2 col-xs-3 control-label"  for="hobby">爱好</label>
      <div class="col-md-10 col-xs-9">
        <label class="radio-inline">
        <input type="checkbox" name="hobby" id="hobby" value="option1" checked> 游泳
        </label>
        <label class="radio-inline">
        <input type="checkbox" name="hobby" id="hobby" value="option2"> 唱歌
        </label>
        <label class="radio-inline">
        <input type="checkbox" name="hobby" id="hobby" value="option3"> 运动
        </label>
        </div>
    </div>

   <div class="form-group">
   <label class="col-md-2 col-xs-3 control-label" for="degree">学历</label>
   <div class="col-md-10 col-xs-9">
    <select name="degree" id="degree" class="form-control">
       <option value=""> ==请选择== </option>
       <option value="0"> 大专 </option>
       <option value="1"> 本科 </option>
       <option value="2"> 研究生 </option>
        <option value="3"> 博士 </option>
    </select>
   </div>
   </div>

   <div class="form-group">
   <label class="col-md-2 col-xs-3 control-label" for="pic">头像</label>
   <div class="col-md-10 col-md-9">
     <input name="pic" type="file" >
   </div>
   </div>

   <div class="form-group">
   <label class="col-md-2 col-xs-3 control-label" for="intro" >个人简介</label>
     <div class="col-md-10 col-md-9">
      <textarea class="form-control" rows="3" id="intro" name="intro"></textarea>
     </div>
   </div>

   <div class="form-group">
   <label class="col-xs-3"></label>
   <div class="col-md-10 col-md-offset-2" ><!--offset向右偏移两个格-->
     <input type="submit" value="注册">
     <input type="reset" value="重置">
   </div>
   </div>

 







    

    </form>
    </div>
     
   </div>

    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="js/bootstrap.min.js"></script>
  </body>
</html>